package com.harveyguo.nihonngo.model;

import lombok.Data;

@Data
public class BaseEntity<T> {



    private T data;

    private String message;

    private Integer code = 200;

    public BaseEntity(T data, String message, Integer code) {
        this.data = data;
        this.message = message;
        this.code = code;
    }

    public BaseEntity(T data, String message) {
        this.data = data;
        this.message = message;
    }
}